Package com.cisco.pt.ipc.sim.impl
Class CustomUdpProcessImpl
java.lang.Object
com.cisco.pt.ipc.impl.IPCObjectImpl
com.cisco.pt.ipc.sim.impl.ProcessImpl
com.cisco.pt.ipc.sim.impl.CustomUdpProcessImpl
- All Implemented Interfaces:
IPCObject,CustomUdpProcess,Process
Information provided by the PKI file:
\class CustomUdpProcess
\brief CustomUdpProcess is the process that manipulates the custom UDP process.
\example network().getDevice("Router0").getProcess("UdpProcess").createCustomUdpProcess()
- Author:
- Auto-generated
-
Field Summary
Fields inherited from class com.cisco.pt.ipc.impl.IPCObjectImpl
accessMessage, ipcFactory, packetTracerSession -
Constructor Summary
ConstructorsConstructorDescriptionCustomUdpProcessImpl(IPCFactory ipcFactory, PacketTracerSession packetTracerSession, IPCMessageLTV accessMessage) -
Method Summary
Modifier and TypeMethodDescriptioncreateFrameInstance(int color, String dstStr) Information provided by the PKI file:intInformation provided by the PKI file:booleanInformation provided by the PKI file:booleanstart(int port) Information provided by the PKI file:booleanstop()Information provided by the PKI file:Methods inherited from class com.cisco.pt.ipc.sim.impl.ProcessImpl
getOwnerDeviceMethods inherited from class com.cisco.pt.ipc.impl.IPCObjectImpl
getAccessMessage, getClassName, getFactory, getObjectUUID, getPacketTracerSession, sendMessage, sendMessageWithReturn, translateToCommandStatusStringPairMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.cisco.pt.ipc.IPCObject
getAccessMessage, getClassName, getFactory, getObjectUUID, getPacketTracerSessionMethods inherited from interface com.cisco.pt.ipc.sim.Process
getOwnerDevice
-
Constructor Details
-
CustomUdpProcessImpl
public CustomUdpProcessImpl(IPCFactory ipcFactory, PacketTracerSession packetTracerSession, IPCMessageLTV accessMessage)
-
-
Method Details
-
start
public boolean start(int port) Information provided by the PKI file:
\brief Starts the custom UDP process on the specified port number. \param int, the port number. \return bool, true if successful, otherwise false.- Specified by:
startin interfaceCustomUdpProcess- Parameters:
port- Takes in a parameter of port- Returns:
- boolean Returns a boolean
-
stop
public boolean stop()Information provided by the PKI file:
\brief Stops the custom UDP process. \return bool, true if successful, otherwise false.- Specified by:
stopin interfaceCustomUdpProcess- Returns:
- boolean Returns a boolean
-
isStarted
public boolean isStarted()Information provided by the PKI file:
\brief Returns true if the custom UDP process was started, otherwise false. \return bool, true if the custom UDP process was started, otherwise false.- Specified by:
isStartedin interfaceCustomUdpProcess- Returns:
- boolean Returns a boolean
-
getPortNumber
public int getPortNumber()Information provided by the PKI file:
\brief Returns the port number of this custom UDP process. \return int, the port number of this custom UDP process.- Specified by:
getPortNumberin interfaceCustomUdpProcess- Returns:
- int Returns a int
-
createFrameInstance
Information provided by the PKI file:
\brief Creates a frame instance. \param color, the color for this frame instance. \param dstStr, the destination IP address for this frame instance. \return FrameInstance, a FrameInstance object.- Specified by:
createFrameInstancein interfaceCustomUdpProcess- Parameters:
color- Takes in a parameter of colordstStr- Takes in a parameter of dstStr- Returns:
- FrameInstance Returns a FrameInstance
-